using System;
using System.Runtime.InteropServices;
using NovaCore.Interop.SafeHandles;

namespace NovaCore.Interop {
	public static class Gps {
		[DllImport(NvtlConstants.LIB_GPS)]
		public static extern GpsHandle CreateSession(CoreHandle coreSession);

		[DllImport(NvtlConstants.LIB_GPS)]
		internal static extern void ReleaseSession(IntPtr session);

		[DllImport(NvtlConstants.LIB_GPS)]
		public static extern NvtlErrorCode IsGpsSupported(GpsHandle session, ref bool bSupported);

		[DllImport(NvtlConstants.LIB_GPS)]
		public static extern NvtlErrorCode GetSupportedModes(GpsHandle session, out GpsModeType modes);
	}
}